package object;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import utility.BasePage;
import utility.Locator;
import utility.Locator.ByType;

public class BlogSavePage {


	WebDriver driver; 
	public BlogSavePage(WebDriver driver) {
		this.driver=driver;
		PageFactory.initElements(driver, this);
	}	
    @FindBy(css="#blog-form > div > div:nth-child(1) > div > input.b-input.c-input.f-input") 
	 public WebElement gBlog_title;
    
    @FindBy(xpath=".//*[@id='blog-form']/div/div[2]/textarea") 
	 public WebElement gblog_abstracts;
    
    @FindBy(css="#tags") 
	 public WebElement gblog_tags;
    
    @FindBy(css="#blogcatalogselect") 
	 public WebElement gcatalogselect;
    
    @FindBy(css="button#stash-bt") 
	 public WebElement gblog_stash;
    


	
//	public void type_blog_body(String s){
//		driver.switchTo().frame("ueditor_0");
//		type(blog_tags,s);
//		driver.switchTo().parentFrame();
//	}
	

}
